package com.kerrykidz.membership.dao.mapper;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.kerrykidz.membership.dao.model.CusMemSalesEntity;
import com.rdp.framework.core.dao.mapper.MyBatisSuperMapper;
import com.rdp.framework.exception.RDPException;

@Repository
public interface CusMemSalesEntityMapper extends MyBatisSuperMapper<CusMemSalesEntity>{
	
	/**
	 * 获取所有销售信息
	 * @return
	 * @throws RDPException
	 */
	public List<Map<String, Object>> listSales() throws RDPException;
	
	/**
	 * 查找会员对应的销售
	 * @return
	 * @throws RDPException
	 */
	public List<CusMemSalesEntity> findSaleByMemberId(CusMemSalesEntity entity) throws RDPException;
	
	/**
	 * 更新会员对应的销售
	 * @param entity
	 * @throws RDPException
	 * @date: 2014年8月24日
	 */
	public void updateSalesByMemberId(CusMemSalesEntity entity) throws RDPException;
}